package com.hdd.hll;

import com.hdd.hll.common.redis.config.RedisProperties;
import org.apache.commons.lang3.StringUtils;
import org.mybatis.spring.annotation.MapperScan;
import org.redisson.Redisson;
import org.redisson.api.RedissonClient;
import org.redisson.config.Config;
import org.redisson.config.SingleServerConfig;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.core.annotation.Order;

@SpringBootApplication
@ServletComponentScan  //注册过滤器注解
@Configuration
public class HllApplication {
    private static volatile String host;

    private static volatile String port;

    private static volatile String password;


    public static void main(String[] args) {

        ConfigurableApplicationContext ctx = SpringApplication.run(HllApplication.class, args );
        host = ctx.getEnvironment().getProperty("spring.redis.host");
        port = ctx.getEnvironment().getProperty("spring.redis.port");
        password = ctx.getEnvironment().getProperty("spring.redis.password");
    }

}
